Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class com.pacist.diamonds.DiamondCanvas

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--com.pacist.diamonds.DiamondCanvas
Subclasses:
Controller, DrawnButton

public class DiamondCanvas
extends java.awt.Canvas
A canvas which is a superclass of most Diamond components.

See Also:
Serialized Form

Field Summary
java.lang.String tipText
          Deprecated. Text to be displayed in ToolTip.
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
DiamondCanvas()
          Creates and initializes a new DiamondCanvas object.
 
Method Summary
java.lang.String getTipText()
          Returns the TipText for this DiamondCanvas.
void mouseEnter(int x, int y)
          Method called when the mouse has entered the DiamondCanvas.
void mouseExit(int x, int y)
          Method called when the mouse has left the DiamondCanvas.
void processMouseEvent(java.awt.event.MouseEvent e)
          Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.
void setTipText(java.lang.String t)
          Sets the TipText for this DiamondCanvas.
 
Methods inherited from class java.awt.Canvas
addNotify, paint
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, paramString, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

tipText

protected java.lang.String tipText
Deprecated. As of JDK1.1.
Text to be displayed in ToolTip.

Remains only for JavaBeans compatibility reasons.

Constructor Detail

DiamondCanvas

public DiamondCanvas()
Creates and initializes a new DiamondCanvas object.
Method Detail

processMouseEvent

protected void processMouseEvent(java.awt.event.MouseEvent e)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.

This method is not called unless mouse events are enabled for this component. Mouse events are enabled when one of the following occurs:

Parameters:
e - the mouse event.
Overrides:
processMouseEvent in class java.awt.Component
See Also:
java.awt.event.MouseEvent, java.awt.event.MouseListener, addMouseListener, enableEvents

mouseEnter

public void mouseEnter(int x,
                       int y)
Method called when the mouse has entered the DiamondCanvas.
Parameters:
x - the x coordinate.
y - the y coordinate.
See Also:
java.awt.event.MouseEvent, java.awt.event.MouseListener

mouseExit

public void mouseExit(int x,
                      int y)
Method called when the mouse has left the DiamondCanvas.
Parameters:
x - the x coordinate.
y - the y coordinate.
See Also:
java.awt.event.MouseEvent, java.awt.event.MouseListener

getTipText

public java.lang.String getTipText()
Returns the TipText for this DiamondCanvas.

setTipText

public void setTipText(java.lang.String t)
Sets the TipText for this DiamondCanvas.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD